package ws.jakarta.ibukota.culinary.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@NamedQueries(
		value={
				@NamedQuery(name="findAllFoodItems", query="from FoodItem"),
				@NamedQuery(name="findFoodItemById", query="from FoodItem fi where fi.id = :itemId")
		}
)

@Entity
@Table(name="FOOD_ITEM")
public class FoodItem {
	@Id
	@Column(name="ID")
	private String id;
	
	@Column(name="NAME")
	private String name;
	
	@Column(name="ORIGIN")
	private String origin;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
}
